﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest_Purchase";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	RoadFlow.Platform.Dictionary BDictionary = new RoadFlow.Platform.Dictionary();
	RoadFlow.Platform.WorkFlow BWorkFlow = new RoadFlow.Platform.WorkFlow();
	RoadFlow.Platform.WorkFlowTask BWorkFlowTask = new RoadFlow.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="2" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest_Purchase.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest_Purchase" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest_Purchase", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><p style="TEXT-ALIGN: center"><span style="FONT-SIZE: 20px"><strong>物资采购申请</strong></span><br/></p><table class="flowformtable" cellspacing="1" cellpadding="0" data-sort="sortDisabled" uetable="null"><tbody><tr class="firstRow"><td width="102" valign="top" style="WORD-BREAK: break-all">申请人：<br/></td><td width="434" valign="top" style="WORD-BREAK: break-all"><input name="TempTest_Purchase.UserID" title="" class="mymember" id="TempTest_Purchase.UserID" type="text" value="u_@RoadFlow.Platform.Users.CurrentUserID.ToString()" more="0" user="1" station="0" dept="0" unit="0" isflow="1" type1="flow_org" rootid="" workgroup="0"/> </td><td width="97" valign="top" style="WORD-BREAK: break-all">部门：</td><td width="439" valign="top"><input name="TempTest_Purchase.UserDept" title="" class="mymember" id="TempTest_Purchase.UserDept" type="text" value="@(RoadFlow.Platform.Users.CurrentDeptID)" more="0" user="0" station="0" dept="1" unit="0" isflow="1" type1="flow_org" rootid="" workgroup="0"/></td></tr><tr><td width="102" valign="top" style="WORD-BREAK: break-all">申请日期：<br/></td><td width="434" valign="top" style="WORD-BREAK: break-all"><input name="TempTest_Purchase.SqDateTime" title="" class="mycalendar" id="TempTest_Purchase.SqDateTime" type="text" value="@(RoadFlow.Utility.DateTimeNew.ShortDate)" isflow="1" type1="flow_datetime" currentmonth="0" dayafter="1" daybefor="0" istime="0" defaultvalue="@(RoadFlow.Utility.DateTimeNew.ShortDate)"/> <input name="TempTest_Purchase.Title" id="TempTest_Purchase.Title" type="hidden" value="@(RoadFlow.Platform.Users.CurrentDeptName)@(RoadFlow.Platform.Users.CurrentUserName)的物资采购申请" type1="flow_hidden"/></td><td width="97" valign="top" style="WORD-BREAK: break-all">备注：</td><td width="439" valign="top"><input name="TempTest_Purchase.Note" title="" class="mytext" id="TempTest_Purchase.Note" style="WIDTH: 80%" type="text" isflow="1" type1="flow_text" valuetype="0"/></td></tr><tr><td valign="top" style="WORD-BREAK: break-all" rowspan="1" colspan="4">申请明细：</td></tr><tr><td valign="top" colspan="4"><table class="flowformsubtable" id="subtable_TempTest_PurchaseList_ID_ID_PurchaseID" style="WIDTH: 99%; MARGIN: 0px auto" cellspacing="1" cellpadding="0" issubflowtable="1"><thead><tr><td>名称<input name="flowsubtable_id" type="hidden" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtable" type="hidden" value="TempTest_PurchaseList"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_primarytablefiled" type="hidden" value="ID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtableprimarykey" type="hidden" value="ID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtablerelationfield" type="hidden" value="PurchaseID"/></td><td>型号</td><td>单位</td><td>数量</td><td>金额</td><td>日期</td><td>类型</td><td>备注</td><td></td></tr></thead><tbody><tr type1="listtr"><td iscount="0" colname="TempTest_PurchaseList_Name"><input name="hidden_guid_TempTest_PurchaseList_ID_ID_PurchaseID" type="hidden" value="0b1f18599424b01dcf37e1505807f837"/><input name="flowsubid" type="hidden" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Name" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Name" style="WIDTH: 100px" type="text" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Name" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Model"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Model" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Model" style="WIDTH: 100px" type="text" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Model" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Unit"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Unit" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Unit" style="WIDTH: 100px" type="text" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Unit" issubflow="1"/></td><td iscount="1" colname="TempTest_PurchaseList_Quantity"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Quantity" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Quantity" style="WIDTH: 100px" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Quantity','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Quantity');" type="text" type1="subflow_text" valuetype="1" iscount="1" colname="TempTest_PurchaseList_Quantity" issubflow="1"/></td><td iscount="1" colname="TempTest_PurchaseList_Sum1"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Sum1" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Sum1" style="WIDTH: 100px" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Sum1','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1');" type="text" type1="subflow_text" valuetype="2" iscount="1" colname="TempTest_PurchaseList_Sum1" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Date"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Date" class="mycalendar" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Date" style="WIDTH: 80px" type="text" type1="subflow_datetime" colname="TempTest_PurchaseList_Date" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Type"><select name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Type" class="myselect" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Type" type1="subflow_select" colname="TempTest_PurchaseList_Type" issubflow="1"><option value="办公用品" selected="">办公用品</option><option value="设备">设备</option></select></td><td iscount="0" colname="TempTest_PurchaseList_Note"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Note" class="mytext" id="TempTest_PurchaseList_ID_ID_PurchaseID_0b1f18599424b01dcf37e1505807f837_TempTest_PurchaseList_Note" style="WIDTH: 100px" type="text" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Note" issubflow="1"/></td><td><input class="mybutton" style="MARGIN-RIGHT: 4px" onclick="formrun.subtableNewRow(this);" type="button" value="增加"/><input class="mybutton" onclick="formrun.subtableDeleteRow(this);" type="button" value="删除"/></td></tr><tr type1="counttr"><td align="right" style="TEXT-ALIGN: right; PADDING-RIGHT: 20px" colspan="11"><span style="MARGIN-RIGHT: 10px">数量合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Quantity">0</label></span><span style="MARGIN-RIGHT: 10px">金额合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1">0</label></span></td></tr></tbody></table></td></tr></tbody></table><p><br/></p>